<?php foreach ($allAddress->result() as $item):?>
<li class="am-cf">
	<div class="address-set" address-id="<?php echo $item->address_id;?>">
		<div class="am-check">
	        <span class="check-wrapper <?php if($item->is_default==2):?>active<?php endif;?>"></span>
	    </div>
	    <div class="address-detail">
	    	<p>
	    		<span class="name"><?php echo $item->receiver_name;?></span>
				<span class="phone"><?php echo $item->tel;?></span>
	    	</p>
	    	<p class="detail">
	    	    <?php if($item->is_default==2):?>
	    	        <span class="red">[默认地址]</span>
	    	    <?php endif;?>
	    	    <?php echo $item->detailed;?>
	    	</p>
	    </div>
    </div>
    <div class="address-opt  address-edit"  address-id="<?php echo $item->address_id;?>">
    	编辑
    </div>
</li>
<?php endforeach;?>
